/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cadi.games;

import com.cadi.aux.Window;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JLayeredPane;

/**
 *
 * @author ApoZuniga
 */
public class SuperEasyLevel extends Window {
    
    private JLabel instruction;
    private JLabel imageInstruction;
    private JLabel superImage;
    private JButton itemOne;
    private JButton itemTwo;
    private JButton itemThree;
    private JButton itemFour;
    private JButton itemFive;
    private JButton itemSix;
    private JButton itemSeven;
    private JButton itemEight;

    public SuperEasyLevel() {
        super();
        voice = java.applet.Applet.newAudioClip(getClass().getResource("/resources/seleccionaProducto.wav"));
        voice.play();
        character.setBounds(5, 440, 149, 300);
        playVoice.setBounds(135, 550, 50, 50);
        imageInstruction = new JLabel(new ImageIcon(getClass().getResource("/resources/globoCompras.png")));
        imageInstruction.setBounds(140, 390, 200, 162);
        this.container.add(imageInstruction, JLayeredPane.PALETTE_LAYER); 
        instruction = new JLabel(new ImageIcon(getClass().getResource("/resources/bannerSuper.png")));
        instruction.setBounds(50, 10, 600, 120);
        container.add(instruction, JLayeredPane.PALETTE_LAYER);
        itemOne = new JButton(new ImageIcon(getClass().getResource("/resources/compra_1.png")));
        itemOne.setBounds(330, 430, 180, 190);
        itemOne.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                EasySuper level = new EasySuper(1);
            }
        });
        container.add(itemOne, JLayeredPane.PALETTE_LAYER);
        
        itemTwo = new JButton(new ImageIcon(getClass().getResource("/resources/compra_2.png")));
        itemTwo.setBounds(580, 450, 190, 150);
        itemTwo.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                EasySuper level = new EasySuper(2);
            }
        });
        container.add(itemTwo, JLayeredPane.PALETTE_LAYER);
        
        itemThree = new JButton(new ImageIcon(getClass().getResource("/resources/compra_3.png")));
        itemThree.setBounds(830, 455, 190, 130);
        itemThree.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                EasySuper level = new EasySuper(3);
            }
        });
        container.add(itemThree, JLayeredPane.PALETTE_LAYER);
        
        itemFour = new JButton(new ImageIcon(getClass().getResource("/resources/compra_4.png")));
        itemFour.setBounds(730, 180, 190, 190);
        itemFour.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                EasySuper level = new EasySuper(4);
            }
        });
        container.add(itemFour, JLayeredPane.PALETTE_LAYER);
        
        itemFive = new JButton(new ImageIcon(getClass().getResource("/resources/compra_5.png")));
        itemFive.setBounds(970, 180, 150, 190);
        itemFive.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                EasySuper level = new EasySuper(5);
            }
        });
        container.add(itemFive, JLayeredPane.PALETTE_LAYER);
        itemSix = new JButton(new ImageIcon(getClass().getResource("/resources/compra_6.png")));
        itemSix.setBounds(490, 180, 190, 150);
        itemSix.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                EasySuper level = new EasySuper(6);
            }
        });
        container.add(itemSix, JLayeredPane.PALETTE_LAYER);
        
        itemSeven = new JButton(new ImageIcon(getClass().getResource("/resources/compra_7.png")));
        itemSeven.setBounds(250, 180, 190, 190);
        itemSeven.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                EasySuper level = new EasySuper(7);
            }
        });
        container.add(itemSeven, JLayeredPane.PALETTE_LAYER);
        
        itemEight = new JButton(new ImageIcon(getClass().getResource("/resources/compra_8.png")));
        itemEight.setBounds(10, 180, 190, 190);
        itemEight.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                EasySuper level = new EasySuper(8);
            }
        });
        container.add(itemEight, JLayeredPane.PALETTE_LAYER);
        
        superImage = new JLabel(new ImageIcon(getClass().getResource("/resources/fondo4.png")));
        superImage.setBounds(0, 0, 1280,800);
        container.add(superImage, JLayeredPane.PALETTE_LAYER);
        window.setVisible(true);
        
    }
}
